package org.iabako.shared.iservice.importdata;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Created by jose on 17/02/15.
 */
public interface ImportClientServiceAsync {

    void readFile(boolean simulate, String importFileNameInServerSession, AsyncCallback<String> asyncCallback);

    public static final class Util {
        private static ImportClientServiceAsync instance;

        public static final ImportClientServiceAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(ImportClientService.class);
            }
            return instance;
        }
    }
}
